package top.lishuoboy.lombok.annotation.builder_superbuider;

import top.lishuoboy.lombok.annotation.builder_superbuider.bean.User;
import top.lishuoboy.lombok.annotation.builder_superbuider.bean.User2;

/**
 * @author ：lishuoboy
 */
public class BuilderTest {

    public static void main(String[] args) {
        User user = User.builder().id(111).name("张三").build();
        System.out.println(user);

        User2 user2 = User2.builder().id(222).name("李四").parentName("爸爸").build();
        System.out.println(user2);
        System.out.println(user2.getParentName());
    }

}
